//
//  FSToDoingSendCell.m
//  WZSOA
//
//  Created by 刘沿 on 16/6/20.
//  Copyright © 2016年 刘沿. All rights reserved.
//

#import "FSToDoingSendCell.h"

@implementation FSToDoingSendCell

+(instancetype)ToDoingSendCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"FSToDoingSendCell" owner:nil options:nil] lastObject]; ;

}

-(void)setModel:(FSToDoingSendModel *)model{

    _model = model;

    self.titleLabel.text = model.title;
    
    if (model.time.length != 0 && model.state.length != 0 && model.name.length !=0) {
        self.desLabel.text = [NSString stringWithFormat:@"%@/%@/%@",model.time,model.state,model.name];
    }else if(model.time.length != 0 && model.state.length == 0 && model.name.length ==0){
        
        self.desLabel.text = [NSString stringWithFormat:@"%@",model.time];
    }
    
    self.iconImage.image = [UIImage imageNamed:@"fileicon.jpg"];
   

}






@end
